<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hz.model.Activity"%>
<%@page import="com.hz.control.ActivityControl"%>
<%@ page import="com.hz.util.ParamUtil"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'index.jsp' starting page</title>
  </head>
  
  <body>
<%
    request.setCharacterEncoding("utf-8");
    int acid = ParamUtil.getInt(request,"acid");
    if(ActivityControl.deleteActivity(acid)){
    %>
    <script>
    alert("删除活动成功");
    window.location.href="../../common/activity/activities.jsp";
    </script>
    <%
    
    }else{
    
 %>
 <script>
    alert("删除活动失败");
    history.go(-1);
    </script>
    <%} %>
  </body>
</html>
